package com.wiscamp.ninechapters.common.core;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;

public class CustomBeanUtils {

    public static void copyProperties(Object source, Object target) {
        BeanUtil.copyProperties(source, target,
                CopyOptions.create()
                        .setIgnoreNullValue(true)
                        .setIgnoreError(true));
    }
}
